using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblKhoaHoc
	{
	private int stt;
	private int idKhoa;
	private int idCTDT;
	private string thoigiandaotao;
	private DateTime ngaybatdau;
	private DateTime ngayketthuc;
	private string isEnd;
	private string dsMonHoc_soTC;
	private int tongTC;
	private string tenKhoaHoc;
	public tblKhoaHoc()
	{}
	public tblKhoaHoc(int stt,int idKhoa,int idCTDT,string thoigiandaotao,DateTime ngaybatdau,DateTime ngayketthuc,string isEnd,string dsMonHoc_soTC,int tongTC,string tenKhoaHoc)
	{
	this.stt = stt;
	this.idKhoa = idKhoa;
	this.idCTDT = idCTDT;
	this.thoigiandaotao = thoigiandaotao;
	this.ngaybatdau = ngaybatdau;
	this.ngayketthuc = ngayketthuc;
	this.isEnd = isEnd;
	this.dsMonHoc_soTC = dsMonHoc_soTC;
	this.tongTC = tongTC;
	this.tenKhoaHoc = tenKhoaHoc;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdKhoa{
	get { return this.idKhoa;}
	set {this.idKhoa=value;}
	}
	public int IdCTDT{
	get { return this.idCTDT;}
	set {this.idCTDT=value;}
	}
	public string Thoigiandaotao{
	get { return this.thoigiandaotao;}
	set {this.thoigiandaotao=value;}
	}
	public DateTime Ngaybatdau{
	get { return this.ngaybatdau;}
	set {this.ngaybatdau=value;}
	}
	public DateTime Ngayketthuc{
	get { return this.ngayketthuc;}
	set {this.ngayketthuc=value;}
	}
	public string IsEnd{
	get { return this.isEnd;}
	set {this.isEnd=value;}
	}
	public string DsMonHoc_soTC{
	get { return this.dsMonHoc_soTC;}
	set {this.dsMonHoc_soTC=value;}
	}
	public int TongTC{
	get { return this.tongTC;}
	set {this.tongTC=value;}
	}
	public string TenKhoaHoc{
	get { return this.tenKhoaHoc;}
	set {this.tenKhoaHoc=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idKhoa+"; "+this.idCTDT+"; "+this.thoigiandaotao+"; "+this.ngaybatdau+"; "+this.ngayketthuc+"; "+this.isEnd+"; "+this.dsMonHoc_soTC+"; "+this.tongTC+"; "+this.tenKhoaHoc+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblKhoaHoc me=(tblKhoaHoc)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 